package com.management.service;

import com.management.controller.form.AddPriorityForm;
import com.management.controller.form.ChangePriorityForm;
import com.management.controller.form.GetAllPriorityForm;
import com.management.controller.form.SelPriorityByNameForm;
import com.management.model.DefectPriority;
import com.baomidou.mybatisplus.extension.service.IService;
import com.management.utils.Result;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 龙世超
 * @since 2022-03-23
 */
public interface DefectPriorityService extends IService<DefectPriority> {

    Result findAllPriority(GetAllPriorityForm getAllPriorityForm);


    Result addPriority(AddPriorityForm addPriorityForm);

    Result closePriority(Integer priorityId);

    Result checkPriorityState(Integer priorityId);

    Result delPriority(Integer priorityId);

    Result findPriorityByName(SelPriorityByNameForm selPriorityByNameForm);

    Result changePriority(ChangePriorityForm changePriorityForm);

    Result getAllPrioritys();
}
